import scipy.io as sio
import numpy as np

data = sio.loadmat('x.mat')

numpy_array = np.array(data['x'])
print(numpy_array)
np.save('x.npy',numpy_array)
data1=np.load('x.npy',allow_pickle=True)
print(data1)